package org.jeecg.modules.rental.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.rental.entity.RentalEbikeShare;
import org.jeecg.modules.rental.resp.EBikeShareResp;
import org.jeecg.modules.rental.resp.ShareAcountResp;
import org.jeecg.modules.rental.resp.ShareEBikeResp;

import java.util.List;

/**
 * @Description: 控制分享
 * @Author: sean
 * @Date:   2024-12-19
 * @Version: V1.0
 */
public interface IRentalEbikeShareService extends IService<RentalEbikeShare> {

    List<ShareAcountResp> shareList(Long ebikeId);

    Boolean addShereAccount(Long ebikeId, String accountCode);

    Boolean removeShereAccount(String ids);

    Boolean removeShereAccount(Long id);

    Boolean setCtrlStatus(Long id, Boolean isCtrl);

    List<ShareEBikeResp> ebikeList();

    Boolean setCtrlEBike(Long ebikeId);

    Boolean setEndCtrl(Long ebikeId);

    List<EBikeShareResp> shareAccountList(Long ebikeId);
}
